package com.esiran.payadmin.service;


import com.baomidou.mybatisplus.service.IService;
import com.esiran.payadmin.exception.APIRespException;
import com.esiran.payadmin.model.Menu;
import com.esiran.payadmin.model.Order;
import org.springframework.web.bind.annotation.RequestParam;

public interface OrderService extends IService<Order> {
    void create(Order order);
    void updateState(String num,Long state) throws APIRespException;
    Order create4merchant(
            String appId,
            String goodsName,
            Double amount,
            String extraId
    ) throws APIRespException;
    Order create4merchant(
            String appId,
            String goodsName,
            Double amount,
            String extraId,
            String notifyUrl
    ) throws APIRespException;
    Order getOrderByNum(String num) throws APIRespException;
    Order getOrderByMerchExtraNum(Long merchId,String extraNum);
    String payOrder(String orderNum,Integer payWay) throws APIRespException;
    String payOrderByQRCode(String orderNum,Integer payWay) throws APIRespException;
    String payOrderByQRCode(String orderNum,Integer payWay,String notifyUrl) throws APIRespException;
}
